package com.wang.designpattern.strategy;

import com.wang.designpattern.strategy.behavior.BadFlyBehavior;
import com.wang.designpattern.strategy.behavior.GagaQuackBehavior;

public class PekingDuck extends Duck {

    public PekingDuck() {
        flyBehavior = new BadFlyBehavior();
        quackBehavior = new GagaQuackBehavior();
    }

    @Override
    public void display() {
        System.out.println("北京鸭 ");
    }
}
